import {createApp} from 'vue'
import App from './App.vue'
import PrimeVue from 'primevue/config';
import ToastService from 'primevue/toastservice';
import Ripple from "primevue/ripple";
import Noir from "@/presets.js";
import ConfirmationService from 'primevue/confirmationservice';
import StyleClass from 'primevue/styleclass';

const app = createApp(App)


app.use(PrimeVue,{
    ripple: true,
    theme: {
        preset: Noir,
        options: {
            prefix: 'p',
            darkModeSelector: '.p-dark',
            cssLayer: false,
        }
    }
});
app.use(ToastService)
app.use(ConfirmationService)
app.directive('ripple', Ripple);
app.directive('styleclass', StyleClass);


export default app